package com.ruoyi.student.mapper;

import java.util.List;
import com.ruoyi.student.domain.StudentRegistration;
import org.apache.ibatis.annotations.Param;

/**
 * 学生注册Mapper接口
 * 
 * @author ruoyi-mate
 * @date 2025-08-11
 */
public interface StudentRegistrationMapper 
{
    /**
     * 查询学生注册
     * 
     * @param id 学生注册主键
     * @return 学生注册
     */
    public StudentRegistration selectStudentRegistrationById(String id);

    /**
     * 查询学生注册列表
     * 
     * @param studentRegistration 学生注册
     * @return 学生注册集合
     */
    public List<StudentRegistration> selectStudentRegistrationList(StudentRegistration studentRegistration);

    /**
     * 新增学生注册
     * 
     * @param studentRegistration 学生注册
     * @return 结果
     */
    public int insertStudentRegistration(StudentRegistration studentRegistration);

    /**
     * 修改学生注册
     * 
     * @param studentRegistration 学生注册
     * @return 结果
     */
    public int updateStudentRegistration(StudentRegistration studentRegistration);

    /**
     * 删除学生注册
     * 
     * @param id 学生注册主键
     * @return 结果
     */
    public int deleteStudentRegistrationById(String id);

    /**
     * 批量删除学生注册
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStudentRegistrationByIds(String[] ids);

   public int batchInsert(List<StudentRegistration> list);

   public StudentRegistration selectStudentRegistrationByStudentId(String username);

    List<StudentRegistration> selectStudentRegistrationIdsByCollegeCodes(@Param("collegeCodes") List<String> collegeCodes, @Param("studentRegistration") StudentRegistration studentRegistration);
}
